package com.kimstore.bean;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Embeddable;
import javax.persistence.OneToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Embeddable
public class ItemStatus {

    public static final String PAID = "Paid";
    public static final String ORDERED = "Ordered";
    public static final String RECEIVED = "Received";
    public static final String DELIVERED = "Delivered";
    public static final String IN_REPAIR = "In Repair";
    public static final String REPAIRED = "Repaired";
    public static final String VOIDED = "Voided";
    public static final String AVAILABLE = "Available";
    public static final String OFFICE_PROPERTY = "Office Property";
    public static final String SOLD = "Sold";

    private String type;
    
    @OneToOne(cascade = {CascadeType.PERSIST, CascadeType.MERGE})
    private Staff staff;
    
    @Temporal(TemporalType.TIMESTAMP)
    private Date date;
    
    private String remark;

    public ItemStatus() {
    }

    public ItemStatus(String type, Date date, Staff staff) {
        this.type = type;
        this.date = date;
        this.staff = staff;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Staff getStaff() {
        return staff;
    }

    public void setStaff(Staff staff) {
        this.staff = staff;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    
    
}
